package cn.wolfcode.crm.query;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.util.StringUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class ClientQueryObject extends QueryObject {

    //创建日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date minInputDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date maxInputDate;

    //精准搜索
    private String identitynum;//身份证号
    private String tel;

    //模糊搜索
    private String principal;//负责人的模糊信息
    private String keyword; //客户姓名/邮箱/身份证

    //客户的状态
    private Integer[] clientState;

    public String getIdentitynum() {
        return StringUtil.empty2Null(identitynum);
    }

    public String getTel() {
        return StringUtil.empty2Null(tel);
    }

    public String getPrincipal() {
        return StringUtil.empty2Null(principal);
    }

    public String getKeyword() {
        return StringUtil.empty2Null(keyword);
    }


}
